package com.bjqh.edu.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/9/22.
 */

public class Index implements Parcelable {


    /**
     * msg : success
     * teacher : [{"passWord":"e10adc3949ba59abbe56e057f20f883e","gradeid":"","role":1,"rname":"","invitecode":"","sessionid":"","rid":"","total":"","teacher":{"qq":"","stars":"","rows":"","total":"","tcardimg":"","recimg":"/sys/teacher//1510389278736.png","tcard":"","intro":"","recintro":"李欣悦2016年以633分的成绩考入厦门大学生命科学系。","id":24,"page":"","ptime":"","status":2},"school":"厦门大学","intro":"","nickname":"","course":"","id":24,"sex":"","mobile":"17859711430","weight":"","rows":"","agents":"","cardnum":"","cardimg":"","grade":{"uid":"","img":"","total":"","flag":"","cname":"","contentid":"","name":"二年级","id":10,"page":"","time":"","rows":""},"name":"李欣悦","header":"","page":"","time":1510384659000,"age":""},{"passWord":"e10adc3949ba59abbe56e057f20f883e","gradeid":"","role":1,"rname":"","invitecode":"","sessionid":"","rid":"","total":"","teacher":{"qq":"","stars":"","rows":"","total":"","tcardimg":"","recimg":"/sys/teacher//1510389114342.png","tcard":"","intro":"","recintro":"2016年以662分考入北京师范大学英语专业、熟悉英语解题技巧、有丰富的家教经验。","id":25,"page":"","ptime":"","status":2},"school":"北京师范大学","intro":"","nickname":"","course":"","id":25,"sex":"","mobile":"18810913692","weight":"","rows":"","agents":"","cardnum":"","cardimg":"","grade":{"uid":"","img":"","total":"","flag":"","cname":"","contentid":"","name":"六年级","id":14,"page":"","time":"","rows":""},"name":"陈星吉","header":"","page":"","time":1510387281000,"age":""}]
     * headlines : {"img":"/sys/menu/1509849846261.png","total":"","flag":5,"name":"免费预约","id":23,"page":"","time":1509849846000,"rows":""}
     * banner : [{"img":"/sys/menu/1510314476053.jpg","total":"","flag":3,"name":"","id":25,"page":"","time":1510314476000,"rows":""},{"img":"/sys/menu/1510314491687.png","total":"","flag":3,"name":"","id":26,"page":"","time":1510314492000,"rows":""}]
     * menu : [{"img":"/sys/menu/1509945340241.png","total":"","flag":2,"name":"免费试听课","id":15,"page":"","time":1509945340000,"rows":""},{"img":"/sys/menu/1509849190739.png","total":"","flag":2,"name":"小班课","id":16,"page":"","time":1509849191000,"rows":""},{"img":"/sys/menu/1509849205507.png","total":"","flag":2,"name":"公开课","id":17,"page":"","time":1509849206000,"rows":""},{"img":"/sys/menu/1509849247275.png","total":"","flag":2,"name":"课程表","id":18,"page":"","time":1509849247000,"rows":""},{"img":"/sys/menu/1509850139113.png","total":"","flag":2,"name":"购买课程","id":19,"page":"","time":1509850139000,"rows":""},{"img":"/sys/menu/1509849268271.png","total":"","flag":2,"name":"我的老师","id":20,"page":"","time":1509849268000,"rows":""},{"img":"/sys/menu/1509849278032.png","total":"","flag":2,"name":"历史成绩","id":21,"page":"","time":1509849278000,"rows":""},{"img":"/sys/menu/1509849291955.png","total":"","flag":2,"name":"关于我们","id":22,"page":"","time":1509849292000,"rows":""}]
     * status : 200
     * order : {"img":"/sys/menu/1509849938594.png","total":"","flag":5,"name":"免费预约","id":24,"page":"","time":1509849939000,"rows":""}
     */

    private String msg;
    private HeadlinesBean headlines;
    private int status;
    private OrderBean order;
    private List<TeacherBeanX> teacher;
    private List<BannerBean> banner;
    private List<MenuBean> menu;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public HeadlinesBean getHeadlines() {
        return headlines;
    }

    public void setHeadlines(HeadlinesBean headlines) {
        this.headlines = headlines;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public List<TeacherBeanX> getTeacher() {
        return teacher;
    }

    public void setTeacher(List<TeacherBeanX> teacher) {
        this.teacher = teacher;
    }

    public List<BannerBean> getBanner() {
        return banner;
    }

    public void setBanner(List<BannerBean> banner) {
        this.banner = banner;
    }

    public List<MenuBean> getMenu() {
        return menu;
    }

    public void setMenu(List<MenuBean> menu) {
        this.menu = menu;
    }

    public static class HeadlinesBean implements Parcelable {
        /**
         * img : /sys/menu/1509849846261.png
         * total :
         * flag : 5
         * name : 免费预约
         * id : 23
         * page :
         * time : 1509849846000
         * rows :
         */

        private String img;
        private String total;
        private int flag;
        private String name;
        private int id;
        private String page;
        private long time;
        private String rows;

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.img);
            dest.writeString(this.total);
            dest.writeInt(this.flag);
            dest.writeString(this.name);
            dest.writeInt(this.id);
            dest.writeString(this.page);
            dest.writeLong(this.time);
            dest.writeString(this.rows);
        }

        public HeadlinesBean() {
        }

        protected HeadlinesBean(Parcel in) {
            this.img = in.readString();
            this.total = in.readString();
            this.flag = in.readInt();
            this.name = in.readString();
            this.id = in.readInt();
            this.page = in.readString();
            this.time = in.readLong();
            this.rows = in.readString();
        }

        public static final Creator<HeadlinesBean> CREATOR = new Creator<HeadlinesBean>() {
            @Override
            public HeadlinesBean createFromParcel(Parcel source) {
                return new HeadlinesBean(source);
            }

            @Override
            public HeadlinesBean[] newArray(int size) {
                return new HeadlinesBean[size];
            }
        };
    }

    public static class OrderBean implements Parcelable {
        /**
         * img : /sys/menu/1509849938594.png
         * total :
         * flag : 5
         * name : 免费预约
         * id : 24
         * page :
         * time : 1509849939000
         * rows :
         */

        private String img;
        private String total;
        private int flag;
        private String name;
        private int id;
        private String page;
        private long time;
        private String rows;

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.img);
            dest.writeString(this.total);
            dest.writeInt(this.flag);
            dest.writeString(this.name);
            dest.writeInt(this.id);
            dest.writeString(this.page);
            dest.writeLong(this.time);
            dest.writeString(this.rows);
        }

        public OrderBean() {
        }

        protected OrderBean(Parcel in) {
            this.img = in.readString();
            this.total = in.readString();
            this.flag = in.readInt();
            this.name = in.readString();
            this.id = in.readInt();
            this.page = in.readString();
            this.time = in.readLong();
            this.rows = in.readString();
        }

        public static final Creator<OrderBean> CREATOR = new Creator<OrderBean>() {
            @Override
            public OrderBean createFromParcel(Parcel source) {
                return new OrderBean(source);
            }

            @Override
            public OrderBean[] newArray(int size) {
                return new OrderBean[size];
            }
        };
    }

    public static class TeacherBeanX implements Parcelable {
        /**
         * passWord : e10adc3949ba59abbe56e057f20f883e
         * gradeid :
         * role : 1
         * rname :
         * invitecode :
         * sessionid :
         * rid :
         * total :
         * teacher : {"qq":"","stars":"","rows":"","total":"","tcardimg":"","recimg":"/sys/teacher//1510389278736.png","tcard":"","intro":"","recintro":"李欣悦2016年以633分的成绩考入厦门大学生命科学系。","id":24,"page":"","ptime":"","status":2}
         * school : 厦门大学
         * intro :
         * nickname :
         * course :
         * id : 24
         * sex :
         * mobile : 17859711430
         * weight :
         * rows :
         * agents :
         * cardnum :
         * cardimg :
         * grade : {"uid":"","img":"","total":"","flag":"","cname":"","contentid":"","name":"二年级","id":10,"page":"","time":"","rows":""}
         * name : 李欣悦
         * header :
         * page :
         * time : 1510384659000
         * age :
         */

        private String passWord;
        private String gradeid;
        private int role;
        private String rname;
        private String invitecode;
        private String sessionid;
        private String rid;
        private String total;
        private TeacherBean teacher;
        private String school;
        private String intro;
        private String nickname;
        private String course;
        private int id;
        private String sex;
        private String mobile;
        private String weight;
        private String rows;
        private String agents;
        private String cardnum;
        private String cardimg;
        private GradeBean grade;
        private String name;
        private String header;
        private String page;
        private long time;
        private String age;

        public String getPassWord() {
            return passWord;
        }

        public void setPassWord(String passWord) {
            this.passWord = passWord;
        }

        public String getGradeid() {
            return gradeid;
        }

        public void setGradeid(String gradeid) {
            this.gradeid = gradeid;
        }

        public int getRole() {
            return role;
        }

        public void setRole(int role) {
            this.role = role;
        }

        public String getRname() {
            return rname;
        }

        public void setRname(String rname) {
            this.rname = rname;
        }

        public String getInvitecode() {
            return invitecode;
        }

        public void setInvitecode(String invitecode) {
            this.invitecode = invitecode;
        }

        public String getSessionid() {
            return sessionid;
        }

        public void setSessionid(String sessionid) {
            this.sessionid = sessionid;
        }

        public String getRid() {
            return rid;
        }

        public void setRid(String rid) {
            this.rid = rid;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public TeacherBean getTeacher() {
            return teacher;
        }

        public void setTeacher(TeacherBean teacher) {
            this.teacher = teacher;
        }

        public String getSchool() {
            return school;
        }

        public void setSchool(String school) {
            this.school = school;
        }

        public String getIntro() {
            return intro;
        }

        public void setIntro(String intro) {
            this.intro = intro;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getCourse() {
            return course;
        }

        public void setCourse(String course) {
            this.course = course;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getWeight() {
            return weight;
        }

        public void setWeight(String weight) {
            this.weight = weight;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        public String getAgents() {
            return agents;
        }

        public void setAgents(String agents) {
            this.agents = agents;
        }

        public String getCardnum() {
            return cardnum;
        }

        public void setCardnum(String cardnum) {
            this.cardnum = cardnum;
        }

        public String getCardimg() {
            return cardimg;
        }

        public void setCardimg(String cardimg) {
            this.cardimg = cardimg;
        }

        public GradeBean getGrade() {
            return grade;
        }

        public void setGrade(GradeBean grade) {
            this.grade = grade;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getHeader() {
            return header;
        }

        public void setHeader(String header) {
            this.header = header;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getAge() {
            return age;
        }

        public void setAge(String age) {
            this.age = age;
        }

        public static class TeacherBean implements Parcelable {
            /**
             * qq :
             * stars :
             * rows :
             * total :
             * tcardimg :
             * recimg : /sys/teacher//1510389278736.png
             * tcard :
             * intro :
             * recintro : 李欣悦2016年以633分的成绩考入厦门大学生命科学系。
             * id : 24
             * page :
             * ptime :
             * status : 2
             */

            private String qq;
            private String stars;
            private String rows;
            private String total;
            private String tcardimg;
            private String recimg;
            private String tcard;
            private String intro;
            private String recintro;
            private int id;
            private String page;
            private String ptime;
            private int status;

            public String getQq() {
                return qq;
            }

            public void setQq(String qq) {
                this.qq = qq;
            }

            public String getStars() {
                return stars;
            }

            public void setStars(String stars) {
                this.stars = stars;
            }

            public String getRows() {
                return rows;
            }

            public void setRows(String rows) {
                this.rows = rows;
            }

            public String getTotal() {
                return total;
            }

            public void setTotal(String total) {
                this.total = total;
            }

            public String getTcardimg() {
                return tcardimg;
            }

            public void setTcardimg(String tcardimg) {
                this.tcardimg = tcardimg;
            }

            public String getRecimg() {
                return recimg;
            }

            public void setRecimg(String recimg) {
                this.recimg = recimg;
            }

            public String getTcard() {
                return tcard;
            }

            public void setTcard(String tcard) {
                this.tcard = tcard;
            }

            public String getIntro() {
                return intro;
            }

            public void setIntro(String intro) {
                this.intro = intro;
            }

            public String getRecintro() {
                return recintro;
            }

            public void setRecintro(String recintro) {
                this.recintro = recintro;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getPage() {
                return page;
            }

            public void setPage(String page) {
                this.page = page;
            }

            public String getPtime() {
                return ptime;
            }

            public void setPtime(String ptime) {
                this.ptime = ptime;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.qq);
                dest.writeString(this.stars);
                dest.writeString(this.rows);
                dest.writeString(this.total);
                dest.writeString(this.tcardimg);
                dest.writeString(this.recimg);
                dest.writeString(this.tcard);
                dest.writeString(this.intro);
                dest.writeString(this.recintro);
                dest.writeInt(this.id);
                dest.writeString(this.page);
                dest.writeString(this.ptime);
                dest.writeInt(this.status);
            }

            public TeacherBean() {
            }

            protected TeacherBean(Parcel in) {
                this.qq = in.readString();
                this.stars = in.readString();
                this.rows = in.readString();
                this.total = in.readString();
                this.tcardimg = in.readString();
                this.recimg = in.readString();
                this.tcard = in.readString();
                this.intro = in.readString();
                this.recintro = in.readString();
                this.id = in.readInt();
                this.page = in.readString();
                this.ptime = in.readString();
                this.status = in.readInt();
            }

            public static final Creator<TeacherBean> CREATOR = new Creator<TeacherBean>() {
                @Override
                public TeacherBean createFromParcel(Parcel source) {
                    return new TeacherBean(source);
                }

                @Override
                public TeacherBean[] newArray(int size) {
                    return new TeacherBean[size];
                }
            };
        }

        public static class GradeBean implements Parcelable {
            /**
             * uid :
             * img :
             * total :
             * flag :
             * cname :
             * contentid :
             * name : 二年级
             * id : 10
             * page :
             * time :
             * rows :
             */

            private String uid;
            private String img;
            private String total;
            private String flag;
            private String cname;
            private String contentid;
            private String name;
            private int id;
            private String page;
            private String time;
            private String rows;

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getImg() {
                return img;
            }

            public void setImg(String img) {
                this.img = img;
            }

            public String getTotal() {
                return total;
            }

            public void setTotal(String total) {
                this.total = total;
            }

            public String getFlag() {
                return flag;
            }

            public void setFlag(String flag) {
                this.flag = flag;
            }

            public String getCname() {
                return cname;
            }

            public void setCname(String cname) {
                this.cname = cname;
            }

            public String getContentid() {
                return contentid;
            }

            public void setContentid(String contentid) {
                this.contentid = contentid;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getPage() {
                return page;
            }

            public void setPage(String page) {
                this.page = page;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getRows() {
                return rows;
            }

            public void setRows(String rows) {
                this.rows = rows;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.uid);
                dest.writeString(this.img);
                dest.writeString(this.total);
                dest.writeString(this.flag);
                dest.writeString(this.cname);
                dest.writeString(this.contentid);
                dest.writeString(this.name);
                dest.writeInt(this.id);
                dest.writeString(this.page);
                dest.writeString(this.time);
                dest.writeString(this.rows);
            }

            public GradeBean() {
            }

            protected GradeBean(Parcel in) {
                this.uid = in.readString();
                this.img = in.readString();
                this.total = in.readString();
                this.flag = in.readString();
                this.cname = in.readString();
                this.contentid = in.readString();
                this.name = in.readString();
                this.id = in.readInt();
                this.page = in.readString();
                this.time = in.readString();
                this.rows = in.readString();
            }

            public static final Creator<GradeBean> CREATOR = new Creator<GradeBean>() {
                @Override
                public GradeBean createFromParcel(Parcel source) {
                    return new GradeBean(source);
                }

                @Override
                public GradeBean[] newArray(int size) {
                    return new GradeBean[size];
                }
            };
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.passWord);
            dest.writeString(this.gradeid);
            dest.writeInt(this.role);
            dest.writeString(this.rname);
            dest.writeString(this.invitecode);
            dest.writeString(this.sessionid);
            dest.writeString(this.rid);
            dest.writeString(this.total);
            dest.writeParcelable(this.teacher, flags);
            dest.writeString(this.school);
            dest.writeString(this.intro);
            dest.writeString(this.nickname);
            dest.writeString(this.course);
            dest.writeInt(this.id);
            dest.writeString(this.sex);
            dest.writeString(this.mobile);
            dest.writeString(this.weight);
            dest.writeString(this.rows);
            dest.writeString(this.agents);
            dest.writeString(this.cardnum);
            dest.writeString(this.cardimg);
            dest.writeParcelable(this.grade, flags);
            dest.writeString(this.name);
            dest.writeString(this.header);
            dest.writeString(this.page);
            dest.writeLong(this.time);
            dest.writeString(this.age);
        }

        public TeacherBeanX() {
        }

        protected TeacherBeanX(Parcel in) {
            this.passWord = in.readString();
            this.gradeid = in.readString();
            this.role = in.readInt();
            this.rname = in.readString();
            this.invitecode = in.readString();
            this.sessionid = in.readString();
            this.rid = in.readString();
            this.total = in.readString();
            this.teacher = in.readParcelable(TeacherBean.class.getClassLoader());
            this.school = in.readString();
            this.intro = in.readString();
            this.nickname = in.readString();
            this.course = in.readString();
            this.id = in.readInt();
            this.sex = in.readString();
            this.mobile = in.readString();
            this.weight = in.readString();
            this.rows = in.readString();
            this.agents = in.readString();
            this.cardnum = in.readString();
            this.cardimg = in.readString();
            this.grade = in.readParcelable(GradeBean.class.getClassLoader());
            this.name = in.readString();
            this.header = in.readString();
            this.page = in.readString();
            this.time = in.readLong();
            this.age = in.readString();
        }

        public static final Creator<TeacherBeanX> CREATOR = new Creator<TeacherBeanX>() {
            @Override
            public TeacherBeanX createFromParcel(Parcel source) {
                return new TeacherBeanX(source);
            }

            @Override
            public TeacherBeanX[] newArray(int size) {
                return new TeacherBeanX[size];
            }
        };
    }

    public static class BannerBean implements Parcelable {
        /**
         * img : /sys/menu/1510314476053.jpg
         * total :
         * flag : 3
         * name :
         * id : 25
         * page :
         * time : 1510314476000
         * rows :
         */

        private String img;
        private String total;
        private int flag;
        private String name;
        private int id;
        private String page;
        private long time;
        private String rows;
        private String url;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public static Creator<BannerBean> getCREATOR() {
            return CREATOR;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.img);
            dest.writeString(this.total);
            dest.writeInt(this.flag);
            dest.writeString(this.name);
            dest.writeInt(this.id);
            dest.writeString(this.page);
            dest.writeLong(this.time);
            dest.writeString(this.rows);
        }

        public BannerBean() {
        }

        protected BannerBean(Parcel in) {
            this.img = in.readString();
            this.total = in.readString();
            this.flag = in.readInt();
            this.name = in.readString();
            this.id = in.readInt();
            this.page = in.readString();
            this.time = in.readLong();
            this.rows = in.readString();
        }

        public static final Creator<BannerBean> CREATOR = new Creator<BannerBean>() {
            @Override
            public BannerBean createFromParcel(Parcel source) {
                return new BannerBean(source);
            }

            @Override
            public BannerBean[] newArray(int size) {
                return new BannerBean[size];
            }
        };
    }

    public static class MenuBean implements Parcelable {
        /**
         * img : /sys/menu/1509945340241.png
         * total :
         * flag : 2
         * name : 免费试听课
         * id : 15
         * page :
         * time : 1509945340000
         * rows :
         */

        private String img;
        private String total;
        private int flag;
        private String name;
        private int id;
        private String page;
        private long time;
        private String rows;
        private String url;

        public int getLogin() {
            return login;
        }

        public void setLogin(int login) {
            this.login = login;
        }

        private int login;
        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public static Creator<MenuBean> getCREATOR() {
            return CREATOR;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getTotal() {
            return total;
        }

        public void setTotal(String total) {
            this.total = total;
        }

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getPage() {
            return page;
        }

        public void setPage(String page) {
            this.page = page;
        }

        public long getTime() {
            return time;
        }

        public void setTime(long time) {
            this.time = time;
        }

        public String getRows() {
            return rows;
        }

        public void setRows(String rows) {
            this.rows = rows;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.img);
            dest.writeString(this.total);
            dest.writeInt(this.flag);
            dest.writeString(this.name);
            dest.writeInt(this.id);
            dest.writeString(this.page);
            dest.writeLong(this.time);
            dest.writeString(this.rows);
        }

        public MenuBean() {
        }

        protected MenuBean(Parcel in) {
            this.img = in.readString();
            this.total = in.readString();
            this.flag = in.readInt();
            this.name = in.readString();
            this.id = in.readInt();
            this.page = in.readString();
            this.time = in.readLong();
            this.rows = in.readString();
        }

        public static final Creator<MenuBean> CREATOR = new Creator<MenuBean>() {
            @Override
            public MenuBean createFromParcel(Parcel source) {
                return new MenuBean(source);
            }

            @Override
            public MenuBean[] newArray(int size) {
                return new MenuBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.msg);
        dest.writeParcelable(this.headlines, flags);
        dest.writeInt(this.status);
        dest.writeParcelable(this.order, flags);
        dest.writeList(this.teacher);
        dest.writeList(this.banner);
        dest.writeList(this.menu);
    }

    public Index() {
    }

    protected Index(Parcel in) {
        this.msg = in.readString();
        this.headlines = in.readParcelable(HeadlinesBean.class.getClassLoader());
        this.status = in.readInt();
        this.order = in.readParcelable(OrderBean.class.getClassLoader());
        this.teacher = new ArrayList<TeacherBeanX>();
        in.readList(this.teacher, TeacherBeanX.class.getClassLoader());
        this.banner = new ArrayList<BannerBean>();
        in.readList(this.banner, BannerBean.class.getClassLoader());
        this.menu = new ArrayList<MenuBean>();
        in.readList(this.menu, MenuBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<Index> CREATOR = new Parcelable.Creator<Index>() {
        @Override
        public Index createFromParcel(Parcel source) {
            return new Index(source);
        }

        @Override
        public Index[] newArray(int size) {
            return new Index[size];
        }
    };
}
